package com.fsc.order.api;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RefreshScope
@RestController
public class TestCfgApi {

    @Value("${param.profileName}")
    private String profileName;

    @RequestMapping("/hello")
    public String hello() {
        return profileName;
    }

    @RequestMapping("/hello2")
    public String hello2() {
        return "123";
    }
}
